package zack.gateway.core.authorization;

import org.apache.shiro.authc.AuthenticationToken;

/** 网关认证token
 * @author A1793
 */
public class GatewayAuthorizingToken implements AuthenticationToken {
    private static final long serialVersionUID = 1L;
    private String uid;
    private String jwt;


    public GatewayAuthorizingToken() {
    }

    public GatewayAuthorizingToken(String uid,String jwt) {
        this.uid = uid;
        this.jwt = jwt;

    }

    @Override
    public Object getPrincipal() {
        return uid;
    }

    @Override
    public Object getCredentials() {
        return jwt;
    }
    public String getJwt(){
        return jwt;
    }
    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setJwt(String jwt) {
        this.jwt = jwt;
    }
}
